/**
 * 游戏模拟器，用来测试游戏各功能是否可用
 */
class GameSimulater extends eui.Component {
	private btn_deal:eui.Button;
	public constructor() {
		super();
		this.skinName="GameSimulaterSkin";
		this.btn_deal.addEventListener(egret.TouchEvent.TOUCH_TAP,this.btn_touch_deal,this);
	}

	private btn_touch_deal():void{
		let table = Table.getTable();
		let cards:Card[] = [];
		//随机生成卡片
		cards.push(new Card(CardsType.Club,CardsValue.A));
		cards.push(new Card(CardsType.Diamonds,CardsValue.Ten));
		cards.push(new Card(CardsType.Diamonds,CardsValue.Fiv));
		cards.push(new Card(CardsType.Diamonds,CardsValue.J));
		cards.push(new Card(CardsType.Diamonds,CardsValue.Q));
		table.deal(cards,200);
	}
}